﻿using System.Text;

namespace msBsc.WebUi.Code
{
    public class QtHtmlGet
    {
        private static System.DateTime dtclear = System.DateTime.Now;
        private static msBsc.AppLogic.Cfg.SynDictionary _htmlcach = new AppLogic.Cfg.SynDictionary(true);
        public static msBsc.AppLogic.Cfg.SynDictionary htmlcach
        {
            get
            {
                if (dtclear.AddHours(2) < System.DateTime.Now)
                {
                    _htmlcach.Clear();
                    dtclear = dtclear.AddHours(2);
                }
                return _htmlcach;
            }
        }


        public string GetHeadMallNavHtml(string strNavNme)
        {
            StringBuilder sbRet = new StringBuilder();
            sbRet.Append(@"<div class=""head-mall-nav"" >");
            sbRet.Append(@"<div  style=""   background-color:#c9033b;  margin-top:2px; margin-bottom:0px; "">");
            sbRet.Append(@"<div style="" width:1190px; margin:auto;"">");
            sbRet.Append(@"<ul  class=""head-nav-ctn"" style="" "">");
            sbRet.Append(@"<li " + (strNavNme == "首页" ? @" class=""select-nav"" style=""width:148px;""" : @" style=""display:none;""") + @"><a  href=""javascript:void(0);"">商品服务分类 </a></li>");
            sbRet.Append(@"<li " + (strNavNme != "首页" ? @"" : @" style=""display:none;""") + @"><img src=""/themes/Style1/Image/llogo.png"" style=""position:absolute;background:none;left:0px;top:12px;width:auto;height:16px;""/><a href=""/"" style="" position:relative; margin-left:10px;"">首  页</a></li>");
            sbRet.Append(@"<li " + (strNavNme == "名品特卖" ? @" class=""select-nav""" : "") + @"><a  href=""/c_SpecialSelling.htm?ID=9"" style="" position:relative;"">名品特卖 </a><img src=""/themes/Style1/Image/hot.gif"" style=""position:absolute;background:none;right:0px;top:-5px;""></li>");
            sbRet.Append(@"<li " + (strNavNme == "活动抽奖" ? @" class=""select-nav""" : "") + @"><a class=""main-nav-icon"" href=""/c_UsrDrawing.htm"">活动抽奖 </a></li>");
            sbRet.Append(@"<li " + (strNavNme == "积分商城" ? @" class=""select-nav""" : "") + @"><a class=""nav-status-icon"" href=""/c_ScoreMall.htm"">积分商城 </a></li>");
            sbRet.Append(@"<li " + (strNavNme == "礼品卷" ? @" class=""select-nav""" : "") + @"><a href=""/c_GiftVolumeMall.htm"">礼品卷 </a></li>");
            sbRet.Append(@"<li " + (strNavNme == "电器商城" ? @" class=""select-nav""" : "") + @"><a href=""/c_ElectronicMall.htm"">电器商城 </a></li>");
            sbRet.Append(@"<li " + (strNavNme == "运河城" ? @" class=""select-nav""" : "") + @"><a href=""http://www.yhcmall.com/"">运河城 </a><img src=""/themes/Style1/Image/hot.gif"" style=""position:absolute;background:none;right:0px;top:-5px;""></li>");
            sbRet.Append(@"<li " + (strNavNme.Trim() == "超市" ? @" class=""select-nav""" : "") + @"><a href=""/c_SupermarketMall.htm"">超 市 </a></li>");
            sbRet.Append(@"<li " + (strNavNme == "尾品特卖" ? @" class=""select-nav""" : "") + @"><a href=""/c_TailGoodsMall.htm"">尾品特卖 </a></li>");
            sbRet.Append(@"<li style="" float:right;"" " + (strNavNme == "限时抢购" ? @" class=""select-nav""" : "") + @"><a href=""/c_FlashSaleMall.htm"">限时抢购 </a></li>");
            sbRet.Append(@"</ul>");
            sbRet.Append(@"</div>");
            sbRet.Append(@"</div> ");
            sbRet.Append(@"<div  style=""background: url(/themes/Style1/Image/shadow24.png) left top repeat-x;height:3px; ""></div>");
            sbRet.Append(@"</div> ");
            return sbRet.ToString();
        }


        //private msBsc.AppLogic.Cfg.UserInfo ouserinfo = new AppLogic.Cfg.UserInfo();

        //private msBsc.AppLogic.Cfg.SynDictionary dicHotLabel = new AppLogic.Cfg.SynDictionary(true);

        public string GetHeaderLoginInfo()
        {
            StringBuilder sbRet = new StringBuilder();
            if (msBsc.SvRef.UserInfo.Online)
            {
                string strScore = "0";
                string strScoreUrl = "/c_MyTradingLog.htm";
                using (Epm.AppLogic.Framework.CDbAccess oacc = new Epm.AppLogic.Framework.CDbAccess())
                {
                    if (msBsc.SvRef.UserInfo.OperType == "1")
                    {
                        System.Data.DataSet dst = oacc.QueryBySQL("SELECT SCORE_QTY FROM SHP_COMMERCIAL_TENANT_INFO WHERE COMM_TENANT_ID='" + msBsc.SvRef.UserInfo.OperDealerId.Split(',')[0] + "'");
                        if (dst.Tables[0].Rows.Count > 0)
                        {
                            strScore = dst.Tables[0].Rows[0]["SCORE_QTY"].ToString();
                        }
                        strScoreUrl = "/d_ShopTradingLog.htm";
                    }
                    else
                    {
                        System.Data.DataSet dst = oacc.QueryBySQL("SELECT SCORE_QTY FROM SHP_CUSTOMER_INFO WHERE USER_NME='" + msBsc.SvRef.UserInfo.Operator + "'");
                        if (dst.Tables[0].Rows.Count > 0)
                        {
                            strScore = dst.Tables[0].Rows[0]["SCORE_QTY"].ToString();
                        }
                    } 
                }
                string strusertype = "";
                string strMurl = "/c_CustManager.htm";
                if (msBsc.SvRef.UserInfo.OperType == "1")
                {
                    strusertype = "商家";
                    strMurl = "/d_ShopManager.htm"; 
                }
                else if (msBsc.SvRef.UserInfo.OperType == "0")
                {
                    strusertype = "管理员";
                    strMurl = "/s_thome.htm";
                }
                else if (msBsc.SvRef.UserInfo.OperType == "3")
                {
                    strusertype = "推广商";
                    strMurl = "/s_thome.htm";
                }
                else if (msBsc.SvRef.UserInfo.OperType == "4")
                {
                    strusertype = "代理商";
                    strMurl = "/s_thome.htm";
                }

                sbRet.Append(@"<span class=""sn-welcome-info""><span>Hi，</span> <a target=""_top"" href=""" + strMurl + @""" class=""j_UserNick sn-user-nick"">" + msBsc.SvRef.UserInfo.Operator + @" " + strusertype + @"</a><a class=""j_Point sn-point"" target=""_top"" href="""+strScoreUrl+@""">积分<em class=""j_PointValue sn-point-value"">" + strScore + @"</em></a></span><span class=""sn-msg-box j_MesssageBox hidden""><i class=""sn-msg-hd""></i><span class=""sn-msg-bd"">                                <a href=""#"" class=""j_MessageTitle sn-msg-title"">加入积分聚乐部</a>                                <b class=""j_CloseMessage sn-msg-close"">×</b>                            </span>                        </span>                        <span class=""sn-welcome-info"">                            <a class=""sn-logout"" target=""_self"" href=""javascript:void(0);"" onclick=""$.setLoginOut();"" id=""J_Logout"">退出</a>                        </span>");
            }
            else
            {
                sbRet.Append(@"<em>您好，欢迎来优速购</em><a class=""sn-login"" href=""/c_CustUserLogin.htm"" target=""_top"" >请登录</a><a class=""sn-register"" href=""/c_RegMailFill.htm"" target=""_top"" >免费注册</a>");
            }
            return sbRet.ToString();
        }

        public string GetHeaderTopHtml()
        {
            string strcartcount = "0";
            using (Epm.AppLogic.Framework.CDbAccess oacc = new Epm.AppLogic.Framework.CDbAccess())
            {
                System.Data.DataSet dscart = oacc.QueryBySQL("SELECT GOODS_COUNT=COUNT(*) FROM SHP_CUSTOMER_CART WHERE USER_NME='" + msBsc.SvRef.UserInfo.Operator + "'");
                if (dscart.Tables[0].Rows.Count > 0 && dscart.Tables[0].Rows[0]["GOODS_COUNT"].ToString()!=string.Empty)
                {
                    strcartcount = dscart.Tables[0].Rows[0]["GOODS_COUNT"].ToString();
                }
            }
            StringBuilder sbRet = new StringBuilder();
            sbRet.Append(@" <div id=""site-nav"">
    <div id=""sn-bg"">
        <div class=""sn-bg-right"">
        </div>/
    </div>
    <div id=""sn-bd"">
        <b class=""sn-edge""></b>

        <div class=""sn-container"">
            <p class=""sn-back-home""><i class=""mui-global-iconfont""></i><a href=""/"">优速购首页</a></p>
            <H1 style=""width:130px;float:left;margin-top:4px;font-weight:normal;""><a href=""http://www.yousogou.com""><strong>优速购</strong></a><a href=""http://www.yousogou.com""><strong>优速购商城</strong></a></H1>
            <p id=""login-info"" class=""sn-login-info"">" + GetHeaderLoginInfo() + @"</p>
            <ul class=""sn-quick-menu"">
                <li class=""sn-mytaobao menu-item j_MyTaobao"">
                    <div class=""sn-menu"">
                        <a class=""menu-hd""
                           href=""/c_CustManager.htm""
                           target=""_top"" rel=""nofollow"">我的优速购<b></b></a>

                        <div class=""menu-bd"">
                            <div class=""menu-bd-panel"" id=""myTaobaoPanel"">
                                <a href=""/c_CustBought.htm""
                                   target=""_top"" rel=""nofollow"">已买到的宝贝</a>
                                <a href=""/d_SoldOrderList.htm""
                                   target=""_top"" rel=""nofollow"">已卖出的宝贝</a>
                            </div>
                        </div>
                    </div>
                </li>
                <li class=""sn-seller-center " + (msBsc.SvRef.UserInfo.OperType == "1" ? "" : "hidden") + @" j_SellerCenter"">
                    <a target=""_top"" href=""/d_ShopManager.htm"">商家中心</a>
                </li>
                <li class=""sn-cart""><i class=""mui-global-iconfont"">&#xf0148;</i>
                    <a class=""sn-cart-link"" href=""/c_CustCart.htm"" target=""_top""
                       rel=""nofollow"">购物车<span class=""mc-count mc-pt3 cart-sum-txt"">" + strcartcount + @"</span>件
                    </a>
                </li>
	            <li class=""sn-separator""></li> 
                <li class=""sn-favorite menu-item"">
                <div class=""sn-menu"">
                    <a class=""menu-hd""
                        href=""javascript:void(0);"" target=""_self"" rel=""nofollow"">收藏夹<b></b></a>

                    <div class=""menu-bd"">
                        <div class=""menu-bd-panel"">
                            <a href=""/c_ShopCollect.htm"" target=""_top""
                                rel=""nofollow"">收藏的店铺</a>
                            </div>
                        </div>
                    </div>
                </li>
	            </ul>
	        </div>
	    </div>
	</div>  ");


                //<li class=""sn-sitemap"">
                //    <div class=""sn-menu"">
                //        <h3 class=""menu-hd""><i class=""mui-global-iconfont"">&#xe601;</i><span>网站导航</span><b></b></h3>
                //        <div class=""menu-bd sn-sitemap-lazy sn-sitemap-bd"" data-spm=""a2228l4"">
                //        </div>
                //    </div>
                //</li>
            
                //<li class=""sn-favorite menu-item"">
                //<div class=""sn-menu"">
                //    <a class=""menu-hd""
                //        href=""/c_Collect_list.htm""
                //        target=""_top"" rel=""nofollow"">收藏夹<b></b></a>

                //    <div class=""menu-bd"">
                //        <div class=""menu-bd-panel"">
                //            <a href=""/c_Item_collect.htm"" target=""_top""
                //                rel=""nofollow"">收藏的宝贝</a>
                //            <a href=""/c_Shop_collect_list.htm"" target=""_top""
                //                rel=""nofollow"">收藏的店铺</a>
                //            </div>
                //        </div>
                //    </div>
                //</li>
            return sbRet.ToString();
        }

        public string GetHeaderLogoDealerHtml(string strpTitleNme = "")
        {
            string strDealername = "店铺名称";
            if (msBsc.SvRef.UserInfo.Online)
            {
                using (Epm.AppLogic.Framework.CDbAccess oCDbAccess = new Epm.AppLogic.Framework.CDbAccess())
                {
                    System.Data.DataSet dst = oCDbAccess.QueryBySQL("SELECT A.COMM_TENANT_ID,A.COMM_TENANT_NME,A.COMM_TYPE_CID,A.COMM_TENANT_SID FROM SHP_COMMERCIAL_TENANT_INFO A WHERE A.USER_NME='" + msBsc.SvRef.UserInfo.Operator + "'");
                    if (dst.Tables[0].Rows.Count > 0)
                    {
                        strDealername = dst.Tables[0].Rows[0]["COMM_TENANT_NME"].ToString();
                        if (dst.Tables[0].Rows[0]["COMM_TYPE_CID"].ToString() == "2")
                        {
                            strDealername = strDealername + "-企业";
                        }
                        else
                        {
                            strDealername = strDealername + "-个人";
                        }
                        if (dst.Tables[0].Rows[0]["COMM_TENANT_SID"].ToString() == "0")
                        {
                            strDealername = strDealername + "(还未上传证件)";
                        }
                        else if (dst.Tables[0].Rows[0]["COMM_TENANT_SID"].ToString() == "1")
                        {
                            strDealername = strDealername + "(证件审核中)";
                        }
                        else if (dst.Tables[0].Rows[0]["COMM_TENANT_SID"].ToString() == "3")
                        {
                            strDealername = strDealername + "(证件审核未通过)";
                        }
                        else if (dst.Tables[0].Rows[0]["COMM_TENANT_SID"].ToString() == "4")
                        {
                            strDealername = strDealername + "(店铺已关闭)";
                        }
                    }
                }
            }

            return GetHeaderLogoHtml(strDealername);
//            StringBuilder sbRet = new StringBuilder();
//            sbRet.Append(@"        <div id=""header"">
//            <div class=""headerLayout"">
//                <!-- global logo -->
//                <div class=""headerCon "">
//                    <h1 id=""mallLogo"" class=""mall-logo"" class=""clearfix"">
//                        <span class=""mlogo"">
//                            <div id=""J_FpLogo"">
//                                <a class=""fp-logo fp-iconfont"" href=""/"" title=""优速购商城"" >
//                                <img src=""/themes/Style1/Image/juyou_head.png""  />" + strpTitleNme + @"
//                                </a>
//                            </div>
//                        </span>
//                    </h1>
//                    <div class=""header-extra"">
//                        <span class=""dealer-name"">" + strDealername + @"</span>
//                    </div>
//                </div>
//            </div>
//        </div>
//");
//            return sbRet.ToString();
        }

        public string GetHeaderLogoHtml(string strpTitleNme = "")
        {
            StringBuilder sbRet = new StringBuilder();
            sbRet.Append(@"
        <div id=""header"" class="""">
            <!-- global logo -->
            <div id=""headerCon"">
                <h1 id=""mallLogo"" style=""width: 175px;"">
                    <span class=""mlogo"" style=""width: 174px; height: 63px; display: block; padding-top: 18px;"">
                        <a href=""/"" target=""_blank"" title=""优速购商城"" style=""width: 174px; height: 63px;""><s style=""width: 174px!important;
                            height: 63px!important; background: url(/themes/Style1/Image/logo.jpg) no-repeat 0 0!important"">
                        </s></a> </span>
                </h1>
                <div id=""shopExtra"">
                    <div class=""slogo"">
                        <a class=""slogo-shopname"" href=""javascript:void(0);" + @"""><strong>" + strpTitleNme + @"</strong></a>
                        <div class=""slogo-extraicon "" style=""display: none"">
                        </div>
                    </div>
                    <div id=""shop-info"" class="""">
                        <div style=""display: none"">
                            <input type=""hidden"" id=""dsr-userid"" value="""" />
                        </div>
                        <div class=""main-info"" style=""display: none;"">
                            <div class=""shopdsr-item"">
                                <div class=""shopdsr-title"">
                                    描 述</div>
                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
                                    <span class=""shopdsr-score-con"">4.9</span> <s class=""shopdsr-score-up""></s>
                                </div>
                            </div>
                            <div class=""shopdsr-item"">
                                <div class=""shopdsr-title"">
                                    服 务</div>
                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
                                    <span class=""shopdsr-score-con"">4.8</span> <s class=""shopdsr-score-up""></s>
                                </div>
                            </div>
                            <div class=""shopdsr-item"">
                                <div class=""shopdsr-title"">
                                    物 流</div>
                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
                                    <span class=""shopdsr-score-con"">4.8</span> <s class=""shopdsr-score-up""></s>
                                </div>
                            </div>
                            <a class=""slogo-triangle""><i class=""icon-triangle""></i></a>
                        </div>
                    </div>
                </div> 
                <div class=""header-extra"">
                    <div id=""mallSearch"" class=""mall-search"">
                        <form name=""searchTop"" action=""/c_GoodsSearch.htm"" class=""mallSearch-form"" >
                        <fieldset>
                            <legend>优速购搜索</legend>
                            <div class=""mallSearch-input clearfix"">
                                <div class=""defaultSearch"">
                                    <div id=""s-combobox-2594"" class=""s-combobox"">
                                        <div class=""s-combobox-input-wrap"">
                                            <input type=""text"" name=""f"" accesskey=""s"" 
                                                value="""" id=""mq"" class=""s-combobox-input"" 
                                                title=""请输入搜索文字"" aria-label=""请输入搜索文字""></div></div>
                                    <button id=""J_SearchBtn"" type=""submit"">
                                        搜优速购<s></s></button>
                                </div>
                            </div>
                        </fieldset></form>
                        
            <ul class=""tmTagSuggest""></ul><script type=""text/javascript"">loadTagSuggest(); </script>
                    </div>
                </div>
            </div>
        </div>");














//            sbRet.Append(@"        <div id=""header"">
//            <div class=""headerLayout"">
//                <!-- global logo -->
//                <div class=""headerCon "">
//                    <h1 id=""mallLogo"" class=""mall-logo"" class=""clearfix"">
//                        <span class=""mlogo"">
//                            <div id=""J_FpLogo"">
//                                <a class=""fp-logo fp-iconfont"" href=""/"" title=""优速购商城"" >
//                                <img src=""/themes/Style1/Image/logo.png""  />" + strpTitleNme + @"
//                                </a>
//                            </div>
//                        </span>
//                    </h1>
//                    <div class=""header-extra"">
//<div class=""header-banner"">
//<div id=""J_FpEventBanner"" class=""fp-event-banner"" data-spm=""20000004"" data-spm-max-idx=""1"" style=""display: block;"">
//<a href=""/"" data-spm=""d2"" data-spm-anchor-id=""3.7396704.20000004.d2"">
//<img class=""j_EventBannerPic event-banner-pic"" src=""/themes/Style1/Image/TB10J3RGpXXXXbFXpXXD1MBIXXX-190-80.png"" width=""190"" height=""80"" alt=""女神的新衣"">
//</a>
//</div>
//</div>
//<div id=""mallSearch"" class=""mall-search"">
//<form class=""mallSearch-form"" name=""searchTop"" action=""/c_GoodsSearch.htm"" target=""_top"">
//<fieldset>
//<legend>优速购搜索</legend>
//<div class=""mallSearch-input clearfix"">
//<label for=""mq"" style=""visibility: visible; display: none;"">搜索 优速购 商品/品牌/店铺</label>
//<div class=""s-combobox"" id=""s-combobox-130"">
//<div class=""s-combobox-input-wrap"">
//<input type=""text"" name=""f"" id=""mq"" tabindex=""9"" accesskey=""s"" title=""请输入搜索文字"" aria-label=""请输入搜索文字"">
//</div></div>
//<button type=""submit"">搜索</button> 
//</div>
//</fieldset>
//</form>
//<ul data-spm=""a1z5h"" class=""hot-query""><li class=""hot-query-highlight""><a href=""/""></a></li><li><a href=""/""></a></li></ul></div>
//</div>
//                </div>
//            </div>
//        </div>
//");
            return sbRet.ToString();
        }

        /// <summary>
        /// 购物页面header
        /// </summary>
        /// <returns></returns>
        public string GetHeaderShopLogoHtml()
        {
            StringBuilder sbRet = new StringBuilder();
            sbRet.Append(@" 
        <div id=""header"" class="""">
            <!-- global logo -->
            <div id=""headerCon"">
                <h1 id=""mallLogo"" style=""width: 175px;"">
                    <span class=""mlogo"" style=""width: 154px; height: 43px; display: block; padding-top: 18px;"">
                        <a href=""/"" target=""_blank"" title=""优速购商城"" style=""width: 154px; height: 43px;""><s style=""width: 154px!important;
                            height: 43px!important; background: url(/themes/Style1/Image/logo.png) no-repeat 0 0!important"">
                        </s>KOKOTmall.com</a> </span>
                </h1>
                <div id=""shopExtra"">
                    <div class=""slogo"">
                        <a class=""slogo-shopname"" href=""/c_ShopView.htm?ID="  + @"""><strong>"  + @"</strong></a>
                        <div class=""slogo-extraicon "">
                        </div>
                    </div>
                    <div id=""shop-info"" class="""">
                        <div style=""display: none"">
                            <input type=""hidden"" id=""dsr-userid"" value="""" />
                        </div>
                        <div class=""main-info"" style=""display: none;"">
                            <div class=""shopdsr-item"">
                                <div class=""shopdsr-title"">
                                    描 述</div>
                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
                                    <span class=""shopdsr-score-con"">4.9</span> <s class=""shopdsr-score-up""></s>
                                </div>
                            </div>
                            <div class=""shopdsr-item"">
                                <div class=""shopdsr-title"">
                                    服 务</div>
                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
                                    <span class=""shopdsr-score-con"">4.8</span> <s class=""shopdsr-score-up""></s>
                                </div>
                            </div>
                            <div class=""shopdsr-item"">
                                <div class=""shopdsr-title"">
                                    物 流</div>
                                <div class=""shopdsr-score shopdsr-score-up-ctrl"">
                                    <span class=""shopdsr-score-con"">4.8</span> <s class=""shopdsr-score-up""></s>
                                </div>
                            </div>
                            <a class=""slogo-triangle""><i class=""icon-triangle""></i></a>
                        </div>
                        <div class=""extra-info ks-popup-hidden ks-overlay-hidden"" id=""ks-component2728"" style=""width: 265px;
                            z-index: 100000; left: -114px; top: 51px;"">
                            <div class=""ks-popup-content"">
                                <div class=""bd"">
                                    <div data-spm=""d4918101"" class=""shop-rate"">
                                        <h4>
                                            店铺动态评分<span class=""compare"">与同行业相比</span></h4>
                                        <ul class=""render-byjs"">
                                            <li>描述相符：<a target=""_blank"" href=""/""><em
                                                class=""count"" title=""4.92572"">4.9</em><span class=""rateinfo"" title=""计算规则:(店铺得分-同行业平均分)/(同行业店铺最高得分-同行业平均分)""><b></b><i>高于</i><em>51.63%</em></span></a></li><li>
                                                    服务态度：<a target=""_blank"" href=""/""><em
                                                        class=""count"" title=""4.89687"">4.8</em><span class=""rateinfo"" title=""计算规则:(店铺得分-同行业平均分)/(同行业店铺最高得分-同行业平均分)""><b></b><i>高于</i><em>46.24%</em></span></a></li><li>
                                                            发货速度：<a target=""_blank"" href=""/""><em
                                                                class=""count"" title=""4.89685"">4.8</em><span class=""rateinfo"" title=""计算规则:(店铺得分-同行业平均分)/(同行业店铺最高得分-同行业平均分)""><b></b><i>高于</i><em>47.74%</em></span></a></li></ul>
                                    </div>
                                    <div class=""extend"">
                                        <h4 class=""title"">
                                            店铺服务</h4>
                                        <ul>
                                            <li class=""shopkeeper"">
                                                <label>
                                                    掌 柜：</label>
                                                <div class=""right"">
                                                    <a href=""/"" data-spm=""d4918097"">剑沙数码专营店</a>
                                                </div>
                                            </li>
                                            <li>
                                                <label>
                                                    客 服：</label>
                                                <div class=""right"">
                                                    <span class=""ww-light ww-large"" data-nick=""%E5%89%91%E6%B2%99%E6%95%B0%E7%A0%81%E4%B8%93%E8%90%A5%E5%BA%97""
                                                        data-tnick=""%E5%89%91%E6%B2%99%E6%95%B0%E7%A0%81%E4%B8%93%E8%90%A5%E5%BA%97""
                                                        data-encode=""true"" data-display=""inline""><a href=""/""
                                                            target=""_blank"" class=""ww-inline ww-online"" title=""点此可以直接和卖家交流选好的宝贝，或相互交流网购体验，还支持语音视频噢。"">
                                                            <span>旺旺在线</span></a></span>
                                                </div>
                                            </li>
                                            <li>
                                                <label>
                                                    公 司 名：
                                                </label>
                                                <div class=""right"">
                                                    上海剑沙电子科技有限公司
                                                </div>
                                            </li>
                                            <li class=""locus"">
                                                <label>
                                                    所 在 地：
                                                </label>
                                                <div class=""right"">
                                                    上海
                                                </div>
                                            </li>
                                            <li>
                                                <label>
                                                    工商执照：</label>
                                                <div class=""right"">
                                                    <a href=""/c_ErrInfo.htm""
                                                        class=""tm-gsLink"" target=""_blank"">
                                                        <img width=""20"" height=""22"" src=""data:image/png;base64,""
                                                            alt=""""></a>
                                                </div>
                                            </li>
                                        </ul>
                                    </div>
                                    <div class=""other"">
                                        <a class=""enter-shop"" href=""/"" data-spm=""d4918105""><i></i><span>
                                            进入店铺</span></a> <a id=""xshop_collection_href"" href=""/""
                                                mercury:params=""id=68346479&amp;itemid=68346479&amp;itemtype=0&amp;ownerid=334228341667af062cafd9236f92ff17""
                                                class=""J_PopupTrigger collection xshop_sc J_TDialogTrigger J_TokenSign"" data-width=""440""
                                                data-height=""260"" data-closebtn=""true""><i></i><span>收藏本店</span> </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div> 
                <div class=""header-extra"">
                    <div id=""mallSearch"" class=""mall-search"">
                        <form name=""searchTop"" action=""/c_GoodsSearch.htm"" class=""mallSearch-form"" >
                        <fieldset>
                            <legend>优速购搜索</legend>
                            <div class=""mallSearch-input clearfix"">
                                <div class=""defaultSearch"">
                                    <div id=""s-combobox-2594"" class=""s-combobox"">
                                        <div class=""s-combobox-input-wrap"">
                                            <input type=""text"" name=""f"" accesskey=""s"" 
                                                value="""" id=""mq"" class=""s-combobox-input"" 
                                                title=""请输入搜索文字"" aria-label=""请输入搜索文字""></div></div>
                                    <button id=""J_SearchBtn"" type=""submit"">
                                        搜优速购<s></s></button>
                                </div>
                                <button id=""J_CurrShopBtn"" class=""currShopBtn"" type=""button"" style=""display:none;"">
                                    搜本店<s></s></button>
                                <input id=""J_Type"" type=""hidden"" name=""type"" value=""p"">
                                <input id=""J_MallSearchStyle"" type=""hidden"" name=""style"" value="""">
                                <input id=""J_Cat"" type=""hidden"" name=""cat"" value=""all"">
                            </div>
                        </fieldset>
                        <input type=""hidden"" name=""from"" value=""qRecommend_1_qRecommend""></form>
                        <ul class=""tmTagSuggest"">
                            <li data-pos=""0"" data-cat=""50024407""><a title=""电池5号"">电池5号</a></li><li data-pos=""1""
                                data-cat=""50024407""><a title=""电池"">电池</a></li><li data-pos=""2"" data-cat=""2""><a title=""南孚电池5号"">
                                    南孚电池5号</a></li><li data-pos=""3"" data-cat=""2""><a title=""南孚电池"">南孚电池</a></li><li data-pos=""4""
                                        data-cat=""2""><a title=""南孚"">南孚</a></li><li data-pos=""5"" data-cat=""50099377""><a title=""电池5号南孚"">
                                            电池5号南孚</a></li><li data-pos=""6"" data-cat=""50099377""><a title=""南孚5号"">南孚5号</a></li><li
                                                data-pos=""7"" data-cat=""50099377""><a title=""碱性电池5号"">碱性电池5号</a></li><li data-pos=""8""
                                                    data-cat=""2""><a title=""电池5"">电池5</a></li><li data-pos=""9"" data-cat=""50099377""><a title=""碱性电池"">
                                                        碱性电池</a></li></ul>
                    </div>
                </div>
            </div>
            <input id=""J_ShopSearchUrl"" type=""hidden"" value=""/"">
        </div>
");
            return sbRet.ToString();
        }

        public string GetFloorHtml()
        {
            StringBuilder sbRet = new StringBuilder();
            sbRet.Append(@"        <div style=""clear:both;height:30px;""></div>
    <div style=""height: auto; background-color: #eee; border-top: 1px solid #ccc;border-top: 5px solid #C00;"">
	<div class=""bt_row"" style=""padding-top: 15px;"">
		<div class=""content"" style=""width: 800px; margin: auto;"">
			<div class=""bt_link_col"">
				<div class=""btl_tit"">
					<div class=""btlt_icon"" style=""background-position: 0px 1px;""></div>
					<div class=""btlt_text"">服务保障</div>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=1"" target=""_blank"">发票保障</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=2"" target=""_blank"">7×24小时客服</a>
				</div>
			</div>
			<div class=""bt_link_col"">
				<div class=""btl_tit"">
					<div class=""btlt_icon"" style=""background-position: 0px -36px;""></div>
					<div class=""btlt_text"">使用帮助</div>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=3"" target=""_blank"">新手指南</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=4"" target=""_blank"">用户协议</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=5"" target=""_blank"">常见问题</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=6"" target=""_blank"">服务协议</a>
				</div>
			</div>
			<div class=""bt_link_col"">
				<div class=""btl_tit"">
					<div class=""btlt_icon"" style=""background-position: 0px -76px;""></div>
					<div class=""btlt_text"">支付方式</div>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=7"" target=""_blank"">货到付款</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=8"" target=""_blank"">在线支付</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=9"" target=""_blank"">积分兑换</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=10"" target=""_blank"">代金券支付</a>
				</div>
			</div>
			<div class=""bt_link_col"">
				<div class=""btl_tit"">
					<div class=""btlt_icon"" style=""background-position: 0px -116px;""></div>
					<div class=""btlt_text"">配送方式</div>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=11"" target=""_blank"">配送说明</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=12"" target=""_blank"">运费说明</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=13"" target=""_blank"">验货签收</a>
				</div>
			</div>
			<div class=""bt_link_col"">
				<div class=""btl_tit"">
					<div class=""btlt_icon"" style=""background-position: 0px -156px;""></div>
					<div class=""btlt_text"">售后服务</div>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=14"" target=""_blank"">正品承诺</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=15"" target=""_blank"">售后咨询</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=16"" target=""_blank"">退货政策</a>
				</div>
				<div class=""btl_item"">
					<div class=""btli_icon""></div>
					<a class=""btli_link"" href=""/c_HelpView.htm?N=17"" target=""_blank"">退货办理</a>
				</div>
			</div>
			<div class=""clear20""></div>
		</div>
	</div> 
        <div style=""clear:both;""></div>  
	<div class=""bt_copy"">
<p><H1><a href=""http://www.yousogou.com""><strong>优速购</strong></a><a href=""http://www.yousogou.com""><strong>优速购商城</strong></a></H1></p>
		<p> Copyright  2013-2014 YOUSOGOU.COM 保留一切权利</p>
		<p>鲁ICP备14035993号-1</p>
	</div>
</div>
");

            return sbRet.ToString();
        }

//        public string GetFloorHtml()
//        {
//            StringBuilder sbRet = new StringBuilder();
//            sbRet.Append(@" <div id=""footer"" >
//                <div id=""mall-desc"" class=""mui-global-footer-lazy"" lazytms-cfg="""">
//                    <dl id=""ensure"">
//                        <dt><span>优速购保障</span></dt>
//                        <dd>
//                            <span><i></i>7天无理由退换货</span> <span><i></i>提供发票</span>
//                        </dd>
//                    </dl>
//                    <dl id=""beginner"">
//                        <dt><span>新手上路</span></dt>
//                        <dd>
//                            <a href=""/c_RegMailFill.htm"" target=""_blank""><i></i>免费注册</a> <a href=""https://www.alipay.com/user/reg_select.htm""
//                                target=""_blank""><i></i>开通支付宝</a> <a href=""https://www.alipay.com/user/login.htm?goto=https%3A%2F%2Fwww.alipay.com%2Fuser%2Finpour_request.htm""
//                                    target=""_blank""><i></i>支付宝充值</a><a href=""http://service.tmall.com/support/tmall/tmallHelp.htm""
//                                        target=""_blank""><i></i>帮助中心</a>
//                        </dd>
//                    </dl>
//                    <dl id=""payment"">
//                        <dt><span>支付方式</span></dt>
//                        <dd>
//                            <a href=""http://help.alipay.com/lab/help_detail.htm?help_id=245296"" target=""_blank"">
//                                <i></i>支付宝快捷支付</a> <a href=""http://help.alipay.com/lab/help_detail.htm?help_id=251547""
//                                    target=""_blank""><i></i>支付宝余额付款</a> <a href=""http://help.alipay.com/lab/help_detail.htm?help_id=253912""
//                                        target=""_blank""><i></i>支付宝卡付款</a> <a href=""/""
//                                            target=""_blank""><i></i>货到付款</a> <a href=""http://abc.alipay.com/cool/fastPayment.htm""
//                                                target=""_blank""><i></i>新人支付</a>
//                        </dd>
//                    </dl>
//                    <dl id=""seller"">
//                        <dt><span>商家服务</span></dt>
//                        <dd>
//                            <a href=""/"" target=""_blank"" class=""join""><i></i>商家入驻&gt;&gt;</a>
//                            <a href="""" target=""_blank""><i></i>商家中心</a>  <a href=""/""
//                                    target=""_blank""><i></i>优速购规则</a> <a href=""/"" target=""_blank""><i></i>
//                                        物流服务</a>
//                            <a href=""/"" target=""_blank""><i></i>
//                                运营服务</a>
//                        </dd>
//                    </dl>
//                    <!--[if IE 6]><br /><![endif]-->
//                    <h4 class=""mui-global-tmall-app go-home"">
//                        <a href=""/"" target=""_blank"" title=""优速购客户端"">优速购客户端</a></h4>
//                </div>
//                <div id=""copyright"" class=""mui-global-footer-lazy"" lazytms-cfg="""">
//                    <!-- foot links from tms start -->
//                    <p id=""footer-tmallinfo"">
//                        <a href=""/about.htm"" target=""_blank"">关于优速购</a>
//                        <a href=""/Help.htm"" target=""_blank"">帮助中心</a>
//                        <a href=""/contact.htm""
//                            target=""_blank"">联系我们</a> <a href=""/"" target=""_blank"">
//                                网站合作</a> <a href=""/"">版权说明</a></p>
//                    <p id=""footer-otherlink"">
//                        <a href=""/""
//                                target=""_blank"">优速购</a> | <a href=""//www.alipay.com"" target=""_blank"">支付宝</a></p>
//                    <p>
//                        ©&nbsp;2003-2014&nbsp;Tmall.com&nbsp;版权所有
//                        <br>
//                        增值电信业务经营许可证：<a data-spm-protocol=""i"" href=""/"">浙B2-20110446</a><br>
//                        网络文化经营许可证：<a href=""/""
//                            target=""_blank"">浙网文[2012]0234-028号</a><br>
//                        互联网医疗保健信息服务 审核同意书 浙 卫网审【2012】6号<br>
//                        互联网药品信息服务资质证书编号：浙-（经营性）-2012-0005</p>
//                    <!-- foot links from tms end -->
//                </div>
//                <div id=""server-num"">
//                    membermanager010179123191.s.et2</div>
//            </div>");

//            return sbRet.ToString();
//        }

        public string GetCustomMenu()
        {
            StringBuilder sbRet = new StringBuilder();
            string strimgtm = "/themes/Style1/Image/u_head_110x110.png";
            using (Epm.AppLogic.Framework.CDbAccess oacc = new Epm.AppLogic.Framework.CDbAccess())
            {
                System.Data.DataSet dst = oacc.QueryBySQL("SELECT LOGO_IMG_URL FROM SHP_CUSTOMER_INFO WHERE USER_NME='" + msBsc.SvRef.UserInfo.Operator + "'");
                if (dst.Tables[0].Rows.Count > 0 && dst.Tables[0].Rows[0]["LOGO_IMG_URL"].ToString()!=string.Empty)
                {
                    strimgtm = dst.Tables[0].Rows[0]["LOGO_IMG_URL"].ToString();
                }
            }
            sbRet.Append(@"    
                <div  class=""uMenu_a"">                    
                <div style=""width: 112px; height: 112px; padding: 2px; background-color: #fff;float:left;"" >
                    <img  src="""+strimgtm+ @""" style=""width: 110px; height: 110px;"">
                </div>
                </div>
                <div style=""clear:both;""> </div>
                <div id=""type_1"" class=""uMenu_a"">
                    我的交易</div>
                <div id=""type_1_box"" class=""uMenu_a_box"">
                    <a href=""/c_CustCart.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;我的购物车</a>
                    <a href=""/c_ShopCollect.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;店铺收藏</a>
                    <a href=""/c_CustBought.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;已买到的商品</a>
                    <a href=""/c_MyTradingLog.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;我的积分</a> 
                    <a href=""/c_MyUMoneyTradingLog.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;我的优币</a> 
                    <a href=""/c_MyRateMana.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;我的评价</a>
                    <a href=""/c_MyChargeLedgerLog.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;我的账单</a>
                    <a href=""/c_ErrInfo.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;我的抽奖</a>
                    <a href=""/c_ErrInfo.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;我的代金券</a>
                </div>
                <div id=""type_2"" class=""uMenu_a"">
                    我是卖家</div>
                <div id=""type_2_box"" class=""uMenu_a_box"">
                    <a href=""/c_DealerRegOne.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;申请开店</a>
                    <a href=""/d_CommGoodsList.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;出售商品</a>
                </div>
                <div id=""type_3"" class=""uMenu_a"">
                    我的设置</div>
                <div id=""type_3_box"" class=""uMenu_a_box"">
                    <a href=""/c_CustManager.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;会员中心</a> 
                    <a href=""/c_CustInfoSet.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;会员资料</a> 
                    <a href=""/c_TradingPwsSet.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;交易密码</a> 
                    <a href=""/c_ManaAddr.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;收货地址</a>
                </div>
                <div id=""type_4"" class=""uMenu_a"">
                    客户服务</div>
                <div id=""type_4_box"" class=""uMenu_a_box"">
                    <a href=""/c_ErrInfo.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;投诉</a>
                </div>");
            return sbRet.ToString();
        }

        public string GetDealerMenu()
        {
            StringBuilder sbRet = new StringBuilder();
            using (Epm.AppLogic.Framework.CDbAccess objacc = new Epm.AppLogic.Framework.CDbAccess())
            {
                System.Data.DataSet ds = objacc.QueryBySQL("SELECT ALLOW_SORE_MALL FROM SHP_COMMERCIAL_TENANT_INFO A WHERE A.COMM_TENANT_ID ='"+msBsc.SvRef.UserInfo.OperDealerId.Split(',')[0]+"'");
                if (ds.Tables[0].Rows.Count > 0)
                {
                    if (ds.Tables[0].Rows[0]["ALLOW_SORE_MALL"].ToString() == "True")
                    {
                        sbRet.Append(@"    
                <div id=""type_0"" class=""uMenu_a"">
                    积分商城</div>
                <div id=""type_0_box"" class=""uMenu_a_box"">
                    <a href=""/d_ScoreGoodsPublic.htm"" target=""_blank"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;发布积分商品</a>
                    <a href=""/d_ScoreGoodsList.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;积分商品列表</a>
                </div>");
                    }
                }
            }


            sbRet.Append(@"    
                <div id=""type_1"" class=""uMenu_a"">
                    商品管理</div>
                <div id=""type_1_box"" class=""uMenu_a_box"">
                    <a href=""/d_CommGoodsBrand.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;品牌维护</a>
                    <a href=""/d_CommGoodsLevelOne.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;商品分类</a>
                    <a href=""/d_CommGoodsPublic.htm"" target=""_blank"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;发布商品</a>
                    <a href=""/d_CommGoodsList.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;商品列表</a>
                    <a href=""/d_GoodsImagesManager.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;图片空间</a>
                </div>
                <div id=""type_2"" class=""uMenu_a"">
                    交易管理</div>
                <div id=""type_2_box"" class=""uMenu_a_box"">
                    <a href=""/d_SoldOrderList.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;订单列表</a>
                    <a href=""/d_ShopChargeLedgerLog.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;结算记录</a>
                    <a href=""/d_ShopTradingLog.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;积分台帐</a>
                    <a href=""/d_ShopScoreCardCreate.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;积分充值卡</a>
                    <a href=""/d_ShopRateMana.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;评价管理</a>
                    <a href=""/c_ErrInfo.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;代金卷</a>
                </div>
                <div id=""type_3"" class=""uMenu_a"">
                    店铺管理</div>
                <div id=""type_3_box"" class=""uMenu_a_box"">
                    <a href=""/d_ShopManager.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;商家中心</a> 
                    <a href=""/d_ShopInfoSet.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;商家资料</a> 
                    <a href=""/d_CustomShopEditer.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;店铺设置</a> 
                    <a href=""/d_ShopIndexColSet.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;橱窗设置</a> 
                    <a href=""/d_ShopTradingPwsSet.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;交易密码</a> 
                </div>
                <div id=""type_4"" class=""uMenu_a"">
                    物流运输</div>
                <div id=""type_4_box"" class=""uMenu_a_box""> 
                    <a href=""/d_ShippingAddr.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;发货地址</a>
                    <a href=""/d_ShopLogistics.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;运费模版</a>
                </div>
                <div id=""type_5"" class=""uMenu_a"">
                    客户服务</div>
                <div id=""type_5_box"" class=""uMenu_a_box"">
                    <a href=""/c_ErrInfo.htm"" class=""uMenu_b"">&nbsp;<samp>&gt;</samp>&nbsp;投诉管理</a>
                </div>");
            return sbRet.ToString();
        }

        public string GetHelpMenu(string strN)
        {
            StringBuilder sbRet = new StringBuilder(); 

            sbRet.Append(@"    
                <div id=""type_1"" class=""uMenu_a"">
                    服务保障</div>
                <div id=""type_1_box"" class=""uMenu_a_box"">
                    <a href=""/c_HelpView.htm?N=1"" class=""uMenu_b " + (strN == "1" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;发票保障</a>
                    <a href=""/c_HelpView.htm?N=2"" class=""uMenu_b " + (strN == "2" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;7×24小时客服</a> 
                </div>
                <div id=""type_2"" class=""uMenu_a"">
                    使用帮助</div>
                <div id=""type_2_box"" class=""uMenu_a_box"">
                    <a href=""/c_HelpView.htm?N=3"" class=""uMenu_b " + (strN == "3" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;新手指南</a>
                    <a href=""/c_HelpView.htm?N=4"" class=""uMenu_b " + (strN == "4" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;用户协议</a>
                    <a href=""/c_HelpView.htm?N=5"" class=""uMenu_b " + (strN == "5" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;常见问题</a>
                    <a href=""/c_HelpView.htm?N=6"" class=""uMenu_b " + (strN == "6" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;服务协议</a>
                </div>
                <div id=""type_3"" class=""uMenu_a"">
                    支付方式</div>
                <div id=""type_3_box"" class=""uMenu_a_box"">
                    <a href=""/c_HelpView.htm?N=7"" class=""uMenu_b " + (strN == "7" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;货到付款</a>
                    <a href=""/c_HelpView.htm?N=8"" class=""uMenu_b " + (strN == "8" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;在线支付</a>
                    <a href=""/c_HelpView.htm?N=9"" class=""uMenu_b " + (strN == "9" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;积分兑换</a>
                    <a href=""/c_HelpView.htm?N=10"" class=""uMenu_b " + (strN == "10" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;代金卷支付</a>
                </div>
                <div id=""type_4"" class=""uMenu_a"">
                    配送方式</div>
                <div id=""type_4_box"" class=""uMenu_a_box""> 
                    <a href=""/c_HelpView.htm?N=11"" class=""uMenu_b " + (strN == "11" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;配送说明</a>
                    <a href=""/c_HelpView.htm?N=12"" class=""uMenu_b " + (strN == "12" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;运费说明</a>
                    <a href=""/c_HelpView.htm?N=13"" class=""uMenu_b " + (strN == "13" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;验货签收</a>
                </div>
                <div id=""type_5"" class=""uMenu_a"">
                    售后服务</div>
                <div id=""type_5_box"" class=""uMenu_a_box"">
                    <a href=""/c_HelpView.htm?N=14"" class=""uMenu_b " + (strN == "14" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;正品承若</a>
                    <a href=""/c_HelpView.htm?N=15"" class=""uMenu_b " + (strN == "15" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;售后咨询</a>
                    <a href=""/c_HelpView.htm?N=16"" class=""uMenu_b " + (strN == "16" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;退货政策</a>
                    <a href=""/c_HelpView.htm?N=17"" class=""uMenu_b " + (strN == "17" ? "uMenu_b_sel" : "") + @""">&nbsp;<samp>&gt;</samp>&nbsp;退货办理</a> 
                </div>");
            return sbRet.ToString();
        }

//        public string GetCustLikeGoods()
//        {

//            StringBuilder sbRet = new StringBuilder();

//            sbRet.Append(@"
// 
//            <a class=""imgLink70 recGoodsItem"" target=""_blank"" href=""http://www.yhcmall.com/item.htm?i=2422"">
//                                <img src=""http://img1.yhcmall.com/imgfile0/s113/d0/18TL9ZWPN_100x100.jpg"">
//                                <font class=""recPrieOld"">￥578.00</font><br>
//                                <font class=""recPrieNow"">￥347.00</font> </a><a class=""imgLink70 recGoodsItem"" target=""_blank""
//                                    href=""http://www.yhcmall.com/item.htm?i=4598"">
//                                    <img src=""http://img2.yhcmall.com/imgfile0/s197/d0/18WCW3TN6_100x100.jpg"">
//                                    <font class=""recPrieOld"">￥328.00</font><br>
//                                    <font class=""recPrieNow"">￥299.00</font> </a><a class=""imgLink70 recGoodsItem"" target=""_blank""
//                                        href=""http://www.yhcmall.com/item.htm?i=4799"">
//                                        <img src=""http://img2.yhcmall.com/imgfile0/s53/d0/18WSBE6AR_100x100.jpg"">
//                                        <font class=""recPrieOld"">￥2980.00</font><br>
//                                        <font class=""recPrieNow"">￥999.00</font> </a>
//        ");
//            return sbRet.ToString();
//        }

//        /// <summary>
//        /// 店铺头部的广告跟菜单
//        /// </summary>
//        /// <param name="isAddJs">是否加载JS</param>
//        /// <returns></returns>
//        public string GetStoreHeaderHtml(bool isAddJs)
//        {
//            return GetStoreHeaderHtml(isAddJs, msBsc.SvRef.UserInfo.OperDealerId.Split(',')[0]);           
//        }


//        /// <summary>
//        /// 店铺头部的广告跟菜单
//        /// </summary>
//        /// <param name="isAddJs">是否加载JS</param>
//        /// <param name="strDealerId">ID</param>
//        /// <returns></returns>
//        public string GetStoreHeaderHtml(bool isAddJs,string strDealerId)
//        {
//            StringBuilder sbRet = new StringBuilder();


//            System.Data.DataSet dsCti = null;
//            System.Data.DataSet dsLevel1 = null;
//            System.Data.DataSet dsLevel2 = null;
//            System.Data.DataSet dsLevel3 = null;
//            using (Epm.AppLogic.Framework.CDbAccess oCDbAccess = new Epm.AppLogic.Framework.CDbAccess())
//            {
//                dsCti = oCDbAccess.QueryBySQL("SELECT COMM_TENANT_ID,DEFAULT_HEADER_IMG,HEADER_TEMPLATE_URL FROM SHP_COMMERCIAL_TENANT_INFO WHERE COMM_TENANT_ID='" + strDealerId + "'");
//                dsLevel1 = oCDbAccess.QueryBySQL("SELECT CT_LEVEL_ONE_ID,CT_LEVEL_ONE_NME,COMM_TENANT_ID FROM SHP_COMMERCIAL_GOODS_LEVEL_ONE WHERE  COMM_TENANT_ID='" + strDealerId + "'");
//                dsLevel2 = oCDbAccess.QueryBySQL("SELECT CT_LEVEL_ONE_ID,CT_LEVEL_TWO_ID,CT_LEVEL_TWO_NME,COMM_TENANT_ID FROM SHP_COMMERCIAL_GOODS_LEVEL_TWO WHERE COMM_TENANT_ID='" + strDealerId + "'");
//                dsLevel3 = oCDbAccess.QueryBySQL("SELECT CT_LEVEL_TWO_ID,CT_LEVEL_THREE_ID,CT_LEVEL_THREE_NME,COMM_TENANT_ID FROM SHP_COMMERCIAL_GOODS_LEVEL_THREE WHERE COMM_TENANT_ID='" + strDealerId + "'");
//            }
//            if (dsCti.Tables[0].Rows.Count <= 0)
//            {
//                return "";
//            }

//            if (!string.IsNullOrEmpty(dsCti.Tables[0].Rows[0]["HEADER_TEMPLATE_URL"].ToString()))
//            {
//                sbRet.Append(@"
//                        <script type=""text/javascript"">  
//                            function setnviframe1Size() { 
//                            $('#nviframe1').width($($('#nviframe1')[0].contentWindow.document).width()); 
//                            $('#nviframe1').height($($('#nviframe1')[0].contentWindow.document).height()); 
//                            }; 
//                        </script>
//                        <iframe id=""nviframe1"" scrolling=""no""  frameborder=""0"" src=""" + dsCti.Tables[0].Rows[0]["HEADER_TEMPLATE_URL"].ToString() + @""" style=""width:100%;"" onload=""setnviframe1Size();""></iframe>");
//            }
//            else
//            {
//                string strMenuList = @"<li><a href=""/c_ShopView.htm?ID=" + dsCti.Tables[0].Rows[0]["COMM_TENANT_ID"].ToString() + @""">首页</a></li>";
//                sbRet.Append(@"
//                    <link rel=""stylesheet"" href=""/??themes/Style1/silder/css/style.css,themes/Style1/silder/css/jquery.tmailsilder.v2.css"" />
//                    <script src=""/??themes/Style1/silder/scripts/jquery.tmailsilder.v2.js"" type=""text/javascript""></script>
//                            <div><img style='width:100%;height:auto;' src=""" + dsCti.Tables[0].Rows[0]["DEFAULT_HEADER_IMG"].ToString() + @""" /></div>
//                            <div id=""Z_TMAIL_SIDER_V2"" class=""sw_categorys_nav"">
//                    <div class=""container""><div class=""allcategorys""><h3 class=""title-item-hd"">
//                    <a href=""javascript:void(0);"">所有商品分类 <s class=""icon""></s></a></h3><ul class=""sublist"">");
//                for (int i = 0; i < dsLevel1.Tables[0].Rows.Count; i++)
//                {
//                    sbRet.Append(@"<li>
//                            <h3 class=""mcate-item-hd"">
//                                <span>" + dsLevel1.Tables[0].Rows[i]["CT_LEVEL_ONE_NME"].ToString() + @"</span>
//                            </h3>");
//                    System.Data.DataRow[] drLevelTwo = dsLevel2.Tables[0].Select("CT_LEVEL_ONE_ID='" + dsLevel1.Tables[0].Rows[i]["CT_LEVEL_ONE_ID"].ToString() + "'");
//                    for (int j = 0; j < drLevelTwo.Length; j++)
//                    {
//                        sbRet.Append(@"<p class=""mcate-item-bd"">");
//                        System.Data.DataRow[] drLevelThree = dsLevel3.Tables[0].Select("CT_LEVEL_TWO_ID='" + drLevelTwo[j]["CT_LEVEL_TWO_ID"].ToString() + "'");
//                        for (int k = 0; k < drLevelThree.Length; k++)
//                        {
//                            sbRet.Append(@"<a href=""#"">" + drLevelThree[k]["CT_LEVEL_THREE_NME"].ToString() + "</a>");
//                        }
//                        sbRet.Append(@"</p>");

//                    }
//                    sbRet.Append(@"</li>");
//                    strMenuList += @"<li><a href=""/c_GoodsSearch.htm?c1=" + dsLevel1.Tables[0].Rows[i]["CT_LEVEL_ONE_ID"].ToString() + @""">" + dsLevel1.Tables[0].Rows[i]["CT_LEVEL_ONE_NME"].ToString() + @"</a></li>";
//                }

//                sbRet.Append(@"</ul>
//                        </div>
//                        <div style=""height: 30px; width: 600px; float: left; padding: 0px; font-weight: bold;
//                            color: #ffffff;""><ul class=""dealer-main-menu"">
//	                            " + strMenuList + @"
//                            </ul></div></div></div>" + (isAddJs ? @" <script type=""text/javascript"">
//                $('#Z_TMAIL_SIDER_V2').Z_TMAIL_SIDER_V2();
//                </script>" : ""));
//            }

//            return sbRet.ToString();
//        }



    }
}